﻿@model jQuery.InfiniteScroll.Models.ProductsViewModel
@{ ViewBag.Title = "Infinite Scroll in ASP.NET MVC"; }
@Html.Partial("ProductsList" , Model)
<script type="text/javascript">
    $(document).ready(function () {
        $('#list').infinitescroll({
            navSelector: '#pager',
            nextSelector: '#pager span.ui-state-hover + a',
            itemSelector: '#list div.ui-corner-all',
            loading: {
                img: '@Url.Content("~/Content/images/ajax-loader.gif")',
                msgText: '',
                finishedMsg: ''
            }
        });
    });
</script>